<?
	function textPreprocess($t) {
		$t = trim($t);
		return $t;
	}
	function labelsPreprocess($l) {
		$l = explode(',',$l);
		foreach($l as $k => i) {
			$i = trim($i);
			$i = strip_tags($i);
			$i = strtolower($i);
			if($i=='') unset($l[$k]);
		}
		$l = array_unique($l);
		return implode(',',$l);
	}
?>